package com.xs.designpattern;

import lombok.extern.slf4j.Slf4j;

/**
 * 抢了就跑的方法
 *
 * @author xs
 */
@Slf4j
public class HitAndRunMethod extends StealingMethod {
    @Override
    protected String pickTarget() {
        return "老妖精女人";
    }

    @Override
    protected void confuseTarget(String target) {
        log.info("从后面接近 {}.", target);
    }

    @Override
    protected void stealTheItem(String target) {
        log.info("抓住手提包，快速逃跑！");
    }
}
